package com.itheima.Classs;

import java.util.ArrayList;

public class Test05 {
    public static void main(String[] args) {
        ArrayList <String>list = new ArrayList();
        list.add("柳岩");
        list.add("杨幂");
        list.add("迪丽热巴");

        list.remove(2);
        list.set(1,"郑爽");
        String s = list.get(1);
        System.out.println(s);
        int size = list.size();
        System.out.println(size);
        for (int i = 0; i < list.size(); i++) {
            String s1 = list.get(i);
            System.out.println(s1);
        }
    }

}
